#include "library/libmysql.h"

using namespace std;
using namespace basic::library2;

CConnection *CDBFactory::GetDBConnect(const std::string &sDbType)
{
	if (sDbType.compare("mysql") == 0)
	{
		CConnection *poConn = new CMySqlConnection();
		return poConn;
	}
	THROW_C_STR2(CIllegalArgumentException, "unknown db %s failed", sDbType.c_str());
}
